package com.pkx.cloud.fse7.dms.token.service.impl;

import com.pkx.cloud.fse7.dms.token.entity.DoorIssueRequest;
import com.pkx.cloud.fse7.dms.token.entity.LossReport;
import com.pkx.cloud.fse7.dms.token.feign.TokenFeign;
import com.pkx.cloud.fse7.dms.token.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author chenwg
 * @date 2020.11.15 16:25
 */
@Service
public class TokenServiceImpl implements TokenService {
    @Autowired
    private TokenFeign tokenFeign;

    @Override
    public String lossReport(LossReport lossReport) {
        return tokenFeign.lossReport(lossReport);
    }

    @Override
    public String unLost(LossReport lossReport) {
        return tokenFeign.unLost(lossReport);
    }

    @Override
    public String doorUnregister(LossReport lossReport) {
        return tokenFeign.doorUnregister(lossReport);
    }

    /**
     * 开卡
     *
     * @param doorIssueRequest
     * @return
     */
    @Override
    public String doorIssue(DoorIssueRequest doorIssueRequest) {
        return tokenFeign.doorIssue(doorIssueRequest);
    }
}
